﻿
namespace Uniforax.Core.Skills
{
    public class BaseSkillManager : ICloneable
    {

        public virtual IEnumerable<BaseSkill> GetSkills()
        {
            return null;
        }

        public virtual BaseSkill GetSkill(string id)
        {
            var skills = GetSkills();
            if (skills is null)
            {
                throw new NullReferenceException($"BaseSkillManager.GetSkill: GetSkills() return null!");
            }
            return skills.FirstOrDefault(i => i.SkillId == id);
        }

        public virtual object Clone()
        {
            throw new NotImplementedException();
        }
    }
}
